﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Common;
using System.Data.SqlClient;
using StackExchange.Profiling.Data;

namespace StackExchange.Profiling.Nhibernate
{
    public class ProfiledSqlCommand : ProfiledDbCommand
    {
        private SqlCommand sqlCommand;

        public ProfiledSqlCommand(DbCommand command, IDbProfiler profiler)
            : base(command, null, profiler)
        {
            this.sqlCommand = (SqlCommand)command;
        }

        public SqlCommand SqlCommand
        {
            get { return sqlCommand; }
        }
    }
}
